package stud.mpgame.network.util;

import stud.mpgame.network.MessageDescription;

public class ResponseMessageDescription extends MessageDescription {

    private static final int ID = -1; //negative value for special task

    private static final int responseUserObjectID = 0;

    public int getID() {
        return ID;
    }

    private static ResponseMessageDescription instance = null;

    private ResponseMessageDescription() {
        this.registerUserObject(responseUserObjectID, ResponseUserObject.class);
    }

    public static ResponseMessageDescription getInstance() {
        if(instance == null) {
            instance = new ResponseMessageDescription();
            //todo inside constructor
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

}
